#include <REGX52.H>
#include "INTRINS.h"

void Delayms(int time)		//@12.000MHz
{
	unsigned char i, j;
while(time){
	i = 12;
	j = 169;
	do
	{
		while (--j);
	} while (--i);
	
}
}


void main(){

		while(1){
				int i=0;
			for(i;i<8;i++){
				P2 = ~(0x01<<i);
				Delayms(20);
				P2=0xFF;
				Delayms(20);
		}
}
}		
